package entity;

import java.io.Serializable;

public class Topic implements Serializable {
	private int tid, ontop;
	private String tname;

	public Topic() {
		super();
	}

	public Topic(int tid, String tname) {
		super();
		this.tid = tid;
		this.tname = tname;
	}

	public Topic(int tid, int ontop, String tname) {
		super();
		this.tid = tid;
		this.ontop = ontop;
		this.tname = tname;
	}

	public int getOntop() {
		return ontop;
	}

	public void setOntop(int ontop) {
		this.ontop = ontop;
	}

	public int getTid() {
		return tid;
	}

	public void setTid(int tid) {
		this.tid = tid;
	}

	public String getTname() {
		return tname;
	}

	public void setTname(String tname) {
		this.tname = tname;
	}

	public Topic(String tname) {
		super();
		this.tname = tname;
	}

}
